<include file="public/header" title="分销排行" body="bag_gray3"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/main.css">
 <div class="classreturn loginsignup ">
            <div class="content">
                <div class="ds-in-bl return">
                    <a href="{:U('/Mobile/Distribution/index')}"><img src="__STATIC__/images/return.png" alt="返回"></a>
                </div>
                <div class="ds-in-bl search center">
                    <span>分销排行</span>
                </div>
            </div>
        </div>
    <div class="ranking_tit">
        <img class="ran1" src="__STATIC__/images/liba.jpg">
        <img class="ran2" src="__STATIC__/images/topb.png">
        <i class="fla-f1"></i>
        <i class="fla-f2"></i>
        <i class="fla-f3"></i>
        <i class="flab"></i>
    </div>
    <div class="ranking_main">
        <div class="list2_rank">
            <a href="/index.php/mobile/Distribution/rankings/sort/distribut_money.html">佣金排行</a>
            <!-- <a href="/index.php/mobile/Distribution/rankings/sort/underling_number.html">下线排行</a> -->
        </div>
        <div class="form_list">
            <div class="board_yellow_dark">
                <div class="board_yellow_light">
                    <div class="rank_alone p" style="margin-top: 0.5rem;">
                        <div class="flo rank_data1">
                            <i class="fla-top1"></i>
                        </div>
                        
                        <div class="flo rank_data2">
                            <div class="my_team_alon p">
                                <div class="team_head">
                                <if condition="$users1['head_pic'] eq ''">
                                    <img src="__STATIC__/images/user68.jpg">
                                <else/>
                                    <img src="{$users1['head_pic']}">
                                </if>
                                </div>
                                <div class="team_name_time">
                                    <span class="t_n">{$paihang1[0]['money']}</span>
                                    <span class="t_t">{$users1['nickname']}</span>
                                </div>
                            </div>
                        </div>

<!--                        <div class="flo rank_data3">
                            <a href="/index.php/mobile/Distribution/my_store.html"><i class="icon-big_arrow_r"></i></a>
                        </div>-->
                    </div>
                    
                    <div class="board_green" id="rankings">
                        
                        <div class="rank_alone p">
                            <div class="flo rank_data1">
                                <i class="fla-top2"></i>
                            </div>
                            <div class="flo rank_data2">
                                <div class="my_team_alon p">
                                    <div class="team_head">
                                        <if condition="$users2['head_pic'] eq ''">
                                            <img src="__STATIC__/images/user68.jpg">
                                        <else/>
                                            <img src="{$users2['head_pic']}">
                                        </if>
                                    </div>
                                    <div class="team_name_time">
                                        <span class="t_n">{$paihang2[0]['money']}</span>
                                        <span class="t_t">{$users2['nickname']}</span>
                                    </div>
                                </div>
                            </div>
                            <!--<div class="flo rank_data3"><a href=""><i class="icon-big_arrow_r"></i></a></div>-->
                        </div>

                        <div class="rank_alone p">
                            <div class="flo rank_data1">
                                <i class="fla-top3"></i>
                            </div>
                            <div class="flo rank_data2">
                                <div class="my_team_alon p">
                                    <div class="team_head">
                                        <if condition="$users3['head_pic'] eq ''">
                                            <img src="__STATIC__/images/user68.jpg">
                                        <else/>
                                            <img src="{$users3['head_pic']}">
                                        </if>
                                    </div>
                                    <div class="team_name_time">
                                        <span class="t_n">{$paihang3[0]['money']}</span>
                                        <span class="t_t">{$users3['nickname']}</span>
                                    </div>
                                </div>
                            </div>
                            <!--<div class="flo rank_data3"><a href=""><i class="icon-big_arrow_r"></i></a></div>-->
                        </div>


                    <volist name="paihang" id="list">
                        <div class="rank_alone p">
                            <div class="flo rank_data1">
                                <span>{$list['paiming']}</span>
                            </div>
                            <div class="flo rank_data2">
                                <div class="my_team_alon p">
                                    <div class="team_head">
                                        <if condition="$list['head_pic'] eq ''">
                                            <img src="__STATIC__/images/user68.jpg">
                                        <else/>
                                            <img src="{$list['head_pic']}">
                                        </if>
                                    </div>
                                    <div class="team_name_time">
                                        <span class="t_n">{$list['money']}</span>
                                        <span class="t_t">{$list['nickname']}</span>
                                    </div>
                                </div>
                            </div>
                            <!--<div class="flo rank_data3"><a href=""><i class="icon-big_arrow_r"></i></a></div>-->
                        </div>
                    </volist>  
                    </div>
                    <!-- <p class="nextpage" onclick="ajax_sourch_submit(-1)">上一页</p>
                    <p class="nextpage" onclick="ajax_sourch_submit(1)">下一页</p> -->
                </div>
            </div>
        </div>
        <i class="fla-f1"></i>
    </div>
    <div class="ranking_foot">
        <img class="big_pocket" src="__STATIC__/images/pock_02.png">
        <img class="litt_mony" src="__STATIC__/images/pock_05.png">
    </div>

    <script>
        var page = 1;
        /*** ajax 提交表单 查询订单列表结果*/
        // ajax 提交购物车
        var before_request = 1; // 上一次请求是否已经有返回来, 有才可以进行下一次请求
        function ajax_sourch_submit(p)
        {
            if (before_request == 0)// 上一次请求没回来 不进行下一次请求
                return false;
            before_request = 0;
            page += p;
            page = page <= 0 ? 0 : page;
            $.ajax({
                type: "GET",
                url: "/index.php?m=Mobile&c=Distribution&a=rankings&order=&is_ajax=1&p=" + page, //+tab,
                success: function (data)
                {
                    if ($.trim(data) == '')
                        $('#getmore').hide();
                    else {
                        $("#rankings").html('');
                        $("#rankings").append(data);
                        $('#getmore').show();
                        before_request = 1;
                    }
                }
            });
        }
    </script>

</html>